<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="<?php echo Yii::app()->session['_lang']; ?>" />
        <meta name="robots" content="index, follow" />
        <title><?php echo CHtml::encode($this->pageTitle); ?></title>
        <?php if ($this->htmlMetadata): ?>
            <meta name="description" content="<?php echo $this->htmlMetadata->description; ?>"/>
            <meta name="keywords" content="<?php echo $this->htmlMetadata->keywords; ?>"/>
        <?php endif; ?>
        <?php
        $cs = Yii::app()->clientScript;
        $cs->registerCoreScript('jquery');
        //Add css
        $cs->registerCssFile(Yii::app()->request->baseUrl . "/css/front/style.css", 'all');
        $cs->registerCssFile(Yii::app()->request->baseUrl . "/css/front/print.css", 'print');
        $cs->registerScriptFile(Yii::app()->request->baseUrl . '/js/front/main.js', CClientScript::POS_HEAD);
        ?>
        <script type="text/javascript">
            var LANG;
            var baseUrl = "<?php echo Yii::app()->request->baseUrl ?>";
            var isGuest = <?php echo (int) Yii::app()->user->isGuest ?>;
            var returnUrl = "<?php echo Yii::app()->user->returnUrl ? Yii::app()->user->returnUrl : '/' ?>";
            <?php echo Common::Token(); ?>
            //<![CDATA[
            optionalZipCountries = ["HK", "IE", "MO", "PA"];
            //]]>
        </script>
        <!--[if lt IE 8]>
        <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl ?>css/ie8.css" media="all" />
        <![endif]-->
        <!--[if lt IE 7]>
        <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl ?>js/ie7.js"></script>
        <![endif]-->
        <script type="text/javascript">var Translator = new Translate({"Please use only letters (a-z or A-Z), numbers (0-9) or underscore(_) in this field, first character should be a letter.": "Please use only letters (a-z or A-Z), numbers (0-9) or underscores (_) in this field, first character must be a letter."});</script>
    </head>
    <body class=" cms-index-index cms-home">
        <div class="wrapper">
            <?php echo Common::warningNoJavaScript(); ?>
            <div class="page">
                <div class="header-container">
                    <?php $this->widget('application.widgets.front.page.Header', array()); ?>
                    <?php $this->widget('application.widgets.front.page.Menus', array('type'=>Menu::TYPE_TOP)); ?>
                </div>
                <div class="main-container col2-left-layout">
                    <div class="main">
                        <?php echo $content; ?>
                        <div class="col-left sidebar">
                            <?php $this->widget('application.widgets.front.product.MenuCategory', array()); ?>
                            <?php $this->widget('application.widgets.front.product.Accessories', array()); ?>
                            <?php $this->widget('application.widgets.front.product.BestSeller', array()); ?>
                            <?php $this->widget('application.widgets.front.product.PopularTags', array()); ?>
                            <?php $this->widget('application.widgets.front.product.Newsletter', array()); ?>
                        </div>
                    </div>
                </div>
                <div class="ma-footer-static-container">
                    <div class="ma-footer-static">
                        <div class="footer-block company">
                            <div class="title">
                                <h2>Company Info</h2>
                            </div>
                            <div class="content">
                                <ul>
                                    <li><a href="#">About us</a></li>
                                    <li><a href="#">My Account</a></li>
                                    <li><a href="#">Order Status</a></li>
                                    <li><a href="#">Contact us</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="footer-block shipping">
                            <div class="title">
                                <h2>Shipping Info</h2>
                            </div>
                            <div class="content">
                                <ul>
                                    <li><a href="#">Free Shipping in US</a></li>
                                    <li><a href="#">International Shipping</a></li>
                                    <li><a href="#">Return</a></li>
                                    <li><a href="#">Refund Policy</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="footer-block policies">
                            <div class="title">
                                <h2>Company Policies</h2>
                            </div>
                            <div class="content">
                                <ul>
                                    <li><a href="#">Security</a></li>
                                    <li><a href="#">Privacy Policy</a></li>
                                    <li><a href="#">Terms &amp; Conditions</a></li>
                                    <li><a href="#">Conditions of Use</a></li>
                                </ul>
                            </div>
                        </div>
                        <div class="footer-block customer">
                            <div class="title">
                                <h2>Customer Service</h2>
                            </div>
                            <div class="content">
                                <ul>
                                    <li><a href="#">Track Your Order</a></li>
                                    <li><a href="#">Affiliates</a></li>
                                    <li><a href="#">Careers</a></li>
                                    <li><a href="#">Help Page and Knowledge Base</a></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="footer-container">
                    <div class="footer">
                        <?php $this->widget('application.widgets.front.page.Menus', array('type'=>Menu::TYPE_BOTTOM)); ?>
                        <?php $this->widget('application.widgets.front.page.Menus', array('type'=>'footer_contact')); ?>
                        <?php $this->widget('application.widgets.front.page.Menus', array('type'=>'copyright')); ?>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>